package com.siemens.industrial.utils;


import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * Created by Yipin on 2016/11/30.
 */
public enum DBBackupUtils {
    INSTANCE;

    private Properties properties = null;

    DBBackupUtils(){
        InputStream stream = this.getClass().getResourceAsStream("/dbbackup.properties");
        try {
            properties = new Properties();
            properties.load(stream);
        }catch (IOException e){
            System.out.println(e.getMessage());
        }
    }

    public String filePath(){
        return properties.getProperty("file_path");
    }

    public String fullBackupBat(){
        return properties.getProperty("full_backup_bat");
    }

    public String diffBackupBat(){
        return properties.getProperty("diff_backup_bat");
    }
}
